#ifndef IMUWIDGET_H
#define IMUWIDGET_H

class accelerometerWidget : public QDockWidget , Ui::accelerometerWidgetUI {
    Q_OBJECT
public:
    accelerometerWidget(QObject *parent,rpi_sensor_acc *a);

    ~accelerometerWidget();
private:
    rpi_sensor_acc *acc;
public slots:
    void refreshContent();
};


class imuWidget : public QDockWidget , Ui::imuWidgetUI {
    Q_OBJECT
public:
    imuWidget(QObject *parent,rpi_sensor_acc *a);
    qfi_PFD* flightInstrPFD;
    ~imuWidget();
private:
    rpi_sensor_acc *acc;
public slots:
    void refreshContent();
    void updateIMU(rpi_imu_9dof* i);
};

class gyroscopeWidget : public QDockWidget , Ui::gyroscopeWidgetUI {
    Q_OBJECT
public:
    gyroscopeWidget(QObject *parent,rpi_sensor_gyro *a);

    ~gyroscopeWidget();
private:
    rpi_sensor_gyro *gyro;
public slots:
    void refreshContent();
};

#endif // IMUWIDGET_H
